// Author: Bjorn Schobben

#include "Rect.h"

Rect::Rect()
{
}

Rect::Rect(const Rect& rhs): color(rhs.color), topLeft(rhs.topLeft), bottomRight(rhs.bottomRight)
{
}

Rect::Rect(const Vector& tl, const Vector& br): topLeft(tl), bottomRight(br)
{
}

Rect::~Rect()
{
}

void Rect::SetColor(const Pixel& ncolor)
{
	color = ncolor;
}

const Pixel& Rect::GetColor() const
{
	return color;
}

const Vector& Rect::GetTopLeft() const
{
	return topLeft;
}

const Vector& Rect::GetBottomRight() const
{
	return bottomRight;
}

void Rect::SetTopLeft(const Vector& v)
{
	topLeft = v;
}

void Rect::SetBottomRight(const Vector& v)
{
	bottomRight = v;
}

Rect& Rect::operator=(const Rect& rhs)
{
	topLeft = rhs.topLeft;
	bottomRight = rhs.bottomRight;
	color = rhs.color;

	return *this;
}
